/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package business;

import dal.CarModelDAL;
import java.util.List;
import model.CarModel;

/**
 *
 * @author Nhang Con
 */
public class CarModelBusiness {

    private CarModelDAL modelDAl = new CarModelDAL();

    public boolean newCarModel(CarModel model) {
        return modelDAl.newCarModel(model);

    }

    public List<CarModel> getListModel() {
        return modelDAl.getListAll();

    }

    public boolean updateCarModel(CarModel model) {
        return modelDAl.updateCarModel(model);

    }
}
